import 'package:flutter/services.dart';

class BaiduFace {
  static BaiduFace instance = BaiduFace();

  BaiduFace();

  final _channel = const MethodChannel('baidu_face');

  Future<void> init(String ak, String sk, String licenseKey,String planId) {
    return _channel.invokeMethod('init', {'ak': ak, 'sk': sk, 'licenseKey': licenseKey,'planId':planId});
  }

  Future<Map> liveDetect() async {
    return await _channel.invokeMethod('liveDetect');
  }
}
